package task07;

import java.util.Scanner;

/**
 * @author banana
 *如何判断一个数能否被七整除？
 */
public class Test1 {
    public static void main(String[] args) {
        System.out.println("请输入一个整数！");
        Scanner sc=new Scanner(System.in);
        int num=sc.nextInt();
        if(num%7==0){
            System.out.println(num+"能被7整除");
        }else{
            System.out.println(num+"不能被7整除");
        }
    }
}
